package net.supcmdr.dnd5e.ui.subpanels.character;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.border.LineBorder;
import java.awt.ComponentOrientation;

@SuppressWarnings("serial")
public class SkillsPanel extends JPanel {
	private JTextField proficiencyBonusMod;
	private JTextField acrobaticsMod;
	private JTextField animHandlingMod;
	private JTextField arcanaMod;
	private JTextField athleticsMod;
	private JTextField deceptionMod;
	private JTextField historyMod;
	private JTextField insightMod;
	private JTextField intimidationMod;
	private JTextField investigationMod;
	private JTextField medicineMod;
	private JTextField natureMod;
	private JTextField perceptionMod;
	private JTextField performanceMod;
	private JTextField persuasionMod;
	private JTextField religionMod;
	private JTextField sleightOfHandMod;
	private JTextField stealthMod;
	private JTextField survivalMod;
	
	
	public SkillsPanel() {
		setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
		
		System.out.println("    -Creating SkillsPanel");
		
		setMinimumSize(new Dimension(225,625));
		setPreferredSize(new Dimension(225, 645));
		setFont(new Font("Tahoma", Font.PLAIN, 12));
		setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		setLayout(null);
		
		JLabel lblSkills = new JLabel("Skills");
		lblSkills.setBounds(10, 11, 205, 22);
		lblSkills.setFont(new Font("Tahoma", Font.BOLD, 18));
		lblSkills.setHorizontalAlignment(SwingConstants.CENTER);
		add(lblSkills);
		
		JLabel lblProficiencyBonus = new JLabel("Proficiency Bonus:");
		lblProficiencyBonus.setHorizontalAlignment(SwingConstants.CENTER);
		lblProficiencyBonus.setBounds(11, 55, 146, 14);
		add(lblProficiencyBonus);
		
		proficiencyBonusMod = new JTextField();
		proficiencyBonusMod.setBounds(144, 52, 40, 20);
		add(proficiencyBonusMod);
		proficiencyBonusMod.setColumns(10);
		
		JLabel lblBonus = new JLabel("Bonus:");
		lblBonus.setBounds(124, 80, 89, 14);
		lblBonus.setHorizontalAlignment(SwingConstants.CENTER);
		add(lblBonus);
		
		JCheckBox acrobaticsCB = new JCheckBox("Acrobatics");
		acrobaticsCB.setBounds(11, 100, 113, 23);
		add(acrobaticsCB);
		
		acrobaticsMod = new JTextField();
		acrobaticsMod.setBounds(130, 101, 80, 20);
		add(acrobaticsMod);
		acrobaticsMod.setColumns(10);
		
		JCheckBox animHandlingCB = new JCheckBox("Animal Handling");
		animHandlingCB.setBounds(11, 128, 113, 23);
		add(animHandlingCB);
		
		animHandlingMod = new JTextField();
		animHandlingMod.setBounds(130, 129, 80, 20);
		animHandlingMod.setColumns(10);
		add(animHandlingMod);
		
		JCheckBox arcanaCB = new JCheckBox("Arcana");
		arcanaCB.setBounds(11, 156, 113, 23);
		add(arcanaCB);
		
		arcanaMod = new JTextField();
		arcanaMod.setBounds(130, 157, 80, 20);
		arcanaMod.setColumns(10);
		add(arcanaMod);
		
		JCheckBox athleticsCB = new JCheckBox("Athletics");
		athleticsCB.setBounds(11, 184, 113, 23);
		add(athleticsCB);
		
		athleticsMod = new JTextField();
		athleticsMod.setBounds(130, 185, 80, 20);
		athleticsMod.setColumns(10);
		add(athleticsMod);
		
		JCheckBox deceptionCB = new JCheckBox("Deception");
		deceptionCB.setBounds(11, 212, 113, 23);
		add(deceptionCB);
		
		deceptionMod = new JTextField();
		deceptionMod.setBounds(130, 213, 80, 20);
		deceptionMod.setColumns(10);
		add(deceptionMod);
		
		JCheckBox historyCB = new JCheckBox("History");
		historyCB.setBounds(11, 240, 113, 23);
		add(historyCB);
		
		historyMod = new JTextField();
		historyMod.setBounds(130, 241, 80, 20);
		historyMod.setColumns(10);
		add(historyMod);
		
		JCheckBox insightCB = new JCheckBox("Insight");
		insightCB.setBounds(11, 268, 113, 23);
		add(insightCB);
		
		insightMod = new JTextField();
		insightMod.setBounds(130, 269, 80, 20);
		insightMod.setColumns(10);
		add(insightMod);
		
		JCheckBox intimidationCB = new JCheckBox("Intimidation");
		intimidationCB.setBounds(11, 296, 113, 23);
		add(intimidationCB);
		
		intimidationMod = new JTextField();
		intimidationMod.setBounds(130, 297, 80, 20);
		intimidationMod.setColumns(10);
		add(intimidationMod);
		
		JCheckBox investigationCB = new JCheckBox("Investigation");
		investigationCB.setBounds(11, 324, 113, 23);
		add(investigationCB);
		
		investigationMod = new JTextField();
		investigationMod.setBounds(130, 325, 80, 20);
		investigationMod.setColumns(10);
		add(investigationMod);
		
		JCheckBox medicineCB = new JCheckBox("Medicine");
		medicineCB.setBounds(11, 352, 113, 23);
		add(medicineCB);
		
		medicineMod = new JTextField();
		medicineMod.setBounds(130, 353, 80, 20);
		medicineMod.setColumns(10);
		add(medicineMod);
		
		JCheckBox natureCB = new JCheckBox("Nature");
		natureCB.setBounds(11, 380, 113, 23);
		add(natureCB);
		
		natureMod = new JTextField();
		natureMod.setBounds(130, 381, 80, 20);
		natureMod.setColumns(10);
		add(natureMod);
		
		JCheckBox perceptionCB = new JCheckBox("Perception");
		perceptionCB.setBounds(11, 408, 113, 23);
		add(perceptionCB);
		
		perceptionMod = new JTextField();
		perceptionMod.setBounds(130, 409, 80, 20);
		perceptionMod.setColumns(10);
		add(perceptionMod);
		
		JCheckBox performanceCB = new JCheckBox("Performance");
		performanceCB.setBounds(11, 436, 113, 23);
		add(performanceCB);
		
		performanceMod = new JTextField();
		performanceMod.setBounds(130, 437, 80, 20);
		performanceMod.setColumns(10);
		add(performanceMod);
		
		JCheckBox persuasionCB = new JCheckBox("Persuasion");
		persuasionCB.setBounds(11, 464, 113, 23);
		add(persuasionCB);
		
		persuasionMod = new JTextField();
		persuasionMod.setBounds(130, 465, 80, 20);
		persuasionMod.setColumns(10);
		add(persuasionMod);
		
		JCheckBox religionCB = new JCheckBox("Religion");
		religionCB.setBounds(11, 492, 113, 23);
		add(religionCB);
		
		religionMod = new JTextField();
		religionMod.setBounds(130, 493, 80, 20);
		religionMod.setColumns(10);
		add(religionMod);
		
		JCheckBox sleightOfHandCB = new JCheckBox("Sleight of Hand");
		sleightOfHandCB.setBounds(11, 520, 113, 23);
		add(sleightOfHandCB);
		
		sleightOfHandMod = new JTextField();
		sleightOfHandMod.setBounds(130, 521, 80, 20);
		sleightOfHandMod.setColumns(10);
		add(sleightOfHandMod);
		
		JCheckBox stealthCB = new JCheckBox("Stealth");
		stealthCB.setBounds(11, 548, 113, 23);
		add(stealthCB);
		
		stealthMod = new JTextField();
		stealthMod.setBounds(130, 549, 80, 20);
		stealthMod.setColumns(10);
		add(stealthMod);
		
		JCheckBox survivalCB = new JCheckBox("Survival");
		survivalCB.setBounds(11, 576, 113, 23);
		add(survivalCB);
		
		survivalMod = new JTextField();
		survivalMod.setBounds(130, 577, 80, 20);
		survivalMod.setColumns(10);
		add(survivalMod);
	}
}
